package com.syan.learn.optimization.ch02.singleton;


public class Singleton {

	public static Singleton instanse = new Singleton();

	private Singleton() {
		System.out.println("csssonstructor...");
	}

	public static Singleton getInstanse() {
		return instanse;
	}

	public void doSomething() {
		System.out.println("do someting...");
	}

	public static void main(String[] args) {
		Singleton.getInstanse().doSomething();
	}

}
